package com.jzo2o.health.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.health.model.domain.ReservationSetting;
import com.jzo2o.health.model.dto.request.ReservationSettingUpsertReqDTO;
import com.jzo2o.health.model.dto.response.ReservationDateResDTO;
import com.jzo2o.health.model.dto.response.ReservationSettingResDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * TODO
 *
 * @Author whx
 * @Date 2024/12/13 19:47
 */
public interface IReservationSettingService extends IService<ReservationSetting> {

    /**
     * 按月查询预约设置
     * @param date
     * @return
     */
    List<ReservationSettingResDTO> getReservationSettingByMonthForAdmin(String date);

    /**
     * 编辑预约设置
     * @param reservationSettingUpsertReqDTO
     */
    void editNumberByDate(ReservationSettingUpsertReqDTO reservationSettingUpsertReqDTO);

    /**
     * 上传预约设置文件
     * @param file
     */
    void upload(MultipartFile file);

    /**
     * 按月查询可预约日期
     * @param month
     * @return
     */
    ReservationDateResDTO getReservationDateByMonthForUser(String month);
}
